package module;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class StaticValue {
    public static String windowTitle=null;
    public static Integer windowWidth;
    public static Integer windowHeight;

    static {
        InputStream is = StaticValue.class.getClassLoader().getResourceAsStream("app.properties");
        Properties prop = new Properties();
        try {
            //加载app.properties配置文件
            prop.load(is);
            windowTitle = prop.getProperty("window.title");
            windowWidth= Integer.valueOf(prop.getProperty("window.width"));
            windowHeight=Integer.valueOf(prop.getProperty("window.height"));

        } catch (IOException e) {
            e.printStackTrace();
        }

    }
}
